﻿<%@ Page Language="C#" MasterPageFile="~/master/ThreeColumnLayout.master" AutoEventWireup="true"
    CodeFile="shopdetail.aspx.cs" Inherits="page_public_shopdetail" Title="Shop Detail" %>
<%@ Register Src="~/control/VerticalMenu.ascx" TagPrefix="ucc" TagName="verticalMenu" %>
<%@ Register Src="~/control/VerticalAdvertise.ascx" TagPrefix="ucc" TagName="verticalAdvertise" %>
<%@ Register Src="~/control/common/DataPager.ascx" TagPrefix="ucc" TagName="dataPager" %>

<asp:Content ID="LeftContent" ContentPlaceHolderID="LeftPlaceHolder" runat="Server">
    <ucc:verticalMenu ID="leftMenu" runat="server" />
</asp:Content>
<asp:Content ID="MiddleContent" ContentPlaceHolderID="MiddlePlaceHolder" runat="Server">
<table cellpadding="0" cellspacing="0" class="shopDetailShopProfileZone">
    <tr><td class="panTopLeft"></td><td class="pan panTopMiddle"></td><td class="panTopRight"></td></tr>
    <tr>
        <td class="pan panMidleLeft"></td>
        <td class="pan panMiddleMiddle">
            <table width="100%">
              <tr>
                <td width="27%" rowspan="4" align="center" style="padding: 15px" valign="top">
                    <asp:Image CssClass="shopLogo" AlternateText="shop image" ID="shopLogo" runat="server" SkinID="borderedImage" /> 
                </td>
                <td class="shopTitle" colspan="3"> 
                    <asp:Label ID="shopName" runat="server"></asp:Label>
                    <span class="shopCode">(<asp:Label ID="shopCode" runat="server"></asp:Label>) </span> 
                </td>
              </tr>
              <tr>
                <td width="21%" valign="top"> Branch Address </td>
                <td width="1%" valign="top"> : </td>
                <td width="51%" valign="top">
                    <asp:Label ID="brandAddress" runat="server"></asp:Label>
                </td>
              </tr>
              <tr>
                <td> E-mail Address </td>
                <td> : </td>
                <td><asp:Label ID="emailAddress" runat="server"></asp:Label>
                </td>
              </tr>
              <tr>
                <td> Phone</td>
                <td> : </td>
                <td><asp:Label ID="phoneNumber" runat="server"></asp:Label>
                </td>
              </tr>
            </table>
        </td>
        <td class="pan panMiddleRight"></td></tr>
    <tr><td class="panBottomLeft"></td><td class="pan panBottomMiddle"></td><td class="panBottomRight"></td></tr>
</table>
<br />
<table cellpadding="0" cellspacing="0" class="shopDetailShopProductZone">
    <tr><td class="panTopLeft"></td><td class="pan panTopMiddle"></td><td class="panTopRight"></td></tr>
    <tr>
        <td class="pan panMidleLeft"></td>
        <td class="pan panMiddleMiddle">
            <h5>Our latest products</h5>
            <table border="0" cellpadding="0" cellspacing="0" align="center">
                <tr>
                    <td>
                        <asp:DataList ID="productList" RepeatDirection="Horizontal" RepeatColumns="3" DataKeyField="Id" 
                            runat="server" CellSpacing="5" CellPadding="5" >
                            <ItemTemplate>
                                <table >
                                    <tr>
                                        <td align="center" >
                                            <a href='productdetail.aspx?id=<%# DataBinder.Eval(Container.DataItem, "id")%>' >
                                                <asp:Image runat="server" CssClass="shopProduct" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "default_image_url")%>' 
                                                    AlternateText="product image"  />
                                            </a>
                                      
                                        </td>
                                    </tr>
                                    <tr>
                                        <td align="center">
                                            <a class="productname" href='productdetail.aspx?id=<%# DataBinder.Eval(Container.DataItem, "id")%>' >
                                                <%# DataBinder.Eval(Container.DataItem, "product_name")%>
                                            </a>
                                        </td>
                                    </tr>
                                </table>
                            </ItemTemplate>
                        </asp:DataList>
                    </td>
                </tr>
            </table>
        </td>
        <td class="pan panMiddleRight"></td></tr>
    <tr><td class="panBottomLeft"></td><td class="pan panBottomMiddle"></td><td class="panBottomRight"></td></tr>
</table>
<br />
<table cellpadding="0" cellspacing="0" class="shopDetailShopCategoryZone">
    <tr><td class="panTopLeft"></td><td class="pan panTopMiddle"></td><td class="panTopRight"></td></tr>
    <tr>
        <td class="pan panMidleLeft"></td>
        <td class="pan panMiddleMiddle">
            <h5>Our product categories</h5>
            <asp:DataList ID="categoryList" RepeatDirection="Horizontal" RepeatColumns="5" DataKeyField="Id" 
                runat="server" CellSpacing="5" CellPadding="5">
                <ItemTemplate>
                    <table>
                        <tr>
                            <td align="center" >
                                <a href='productlist.aspx?id=<%# DataBinder.Eval(Container.DataItem, "id")%>&shopid=<%# DataBinder.Eval(Container.DataItem, "shop_id")%>' >
                                    <asp:Image runat="server" CssClass="shopCategory" ImageUrl='<%# DataBinder.Eval(Container.DataItem, "category_image")%>' 
                                        AlternateText="category image"  />
                                </a>
                            </td>
                        </tr>
                        <tr>
                            <td align="center">
                                <a class="shopCategoryName" href='productlist.aspx?id=<%# DataBinder.Eval(Container.DataItem, "id")%>&shopid=<%# DataBinder.Eval(Container.DataItem, "shop_id")%>' >
                                    <%# DataBinder.Eval(Container.DataItem, "category_name")%>
                                </a>
                            </td>
                        </tr>
                    </table>
                </ItemTemplate>
            </asp:DataList>
        </td>
        <td class="pan panMiddleRight"></td></tr>
    <tr><td class="panBottomLeft"></td><td class="pan panBottomMiddle"></td><td class="panBottomRight"></td></tr>
</table>
</asp:Content>
<asp:Content ID="RightContent" ContentPlaceHolderID="RightPlaceHolder" runat="Server">
    <table>
        <tr>
            <td>
                <table border="0" width="100%" class="productDetailSidePanel">
                    <tr>
                        <td align="left">
                            Shop Rating: 
                        </td>
                        <td align="left">
                            <asp:Label ID="rating" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            Total Visits: 
                        </td>
                        <td align="left">
                            <asp:Label ID="views" runat="server"></asp:Label>
                        </td>
                    </tr>
                    <tr>
                        <td align="left">
                            Categories: 
                        </td>
                        <td align="left">
                            <asp:Label ID="categories" runat="server"></asp:Label>
                        </td>
                    </tr>
                </table>
            </td>
        </tr>
        <tr>
            <td>
                <ucc:verticalAdvertise ID="rightAdvertise" runat="server" 
                    ContentType="HomePageVerticalAdvertisement" />
            </td>
        </tr>
    </table>
</asp:Content>
